<template>
    <div id="app">
        <div class="delImg">
            <div>
                <!-- <img src="/static/img/blueAsk.jpg" alt=""> -->
            </div>
        </div>
        <div class="delCont">
            {{name}}
        </div>
        <div class="delope">
            <div @click="okClick">
                确定
            </div>
            <div @click="canleClick">
                取消
            </div>
        </div>
    </div>
</template>
<script>
import { mapActions } from "vuex";
export default {
  props: ["name"],
  data() {
    return {};
  },
  created: function() {},
  mounted: function() {},
  watch: {},
  methods: {
    // 确认
    okClick() {
      this.$emit("ok", "1");
    },
    // 取消
    canleClick() {
      this.$emit("canle", "2");
    },
    ...mapActions([""])
  }
};
</script>
<style scoped>
.delImg {
  width: 525px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delImg > div {
  width: 46px;
  height: 46px;
  overflow: hidden;
  margin-top: 20px;
}

.delImg > div img {
  width: 100%;
  height: 100%;
}

.delCont {
  width: 525px;
  height: 25px;
  font-size: 20px;
  color: #5acdfa;
  text-align: center;
}

.delope {
  width: 525px;
  height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delope > div {
  cursor: pointer;
  width: 70px;
  height: 32px;
  line-height: 32px;
  color: #fff;
  text-align: center;
  border-radius: 3px;
}

.delope > div:nth-child(1) {
  margin-right: 25px;
  background-color: #5acdfa;
}

.delope > div:nth-child(2) {
  margin-left: 25px;
  background-color: #aeaeae;
}

.delContent {
  width: 525px;
  height: 280px;
  background-color: #fff;
  border: 1px solid #eaeaea;
  box-shadow: 0px 2px 10px #eaeaea !important;
  border-radius: 7px;
  margin: calc((100vh - 280px) / 2) auto;
  z-index: 100000;
}
</style>